<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class InterviewRemind extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'eb_interview_remind';
    public static $typeTxt=[
        1=>'第一次产检追访',
        2=>'第二次产检追访',
        3=>'第三次产检追访',
        4=>'第四次产检追访',
        5=>'第五次产检追访',
    ];
    public function interview()
    {
        return $this->hasOne(Interview::class,'family_pregn_id','family_preg_id');
    }
    public function family(){
        return $this->hasOne(Family::class,'id','family_id');
    }
    public function familyPreg(){
        return $this->hasOne(FamilyPregn::class,'id','family_pregn_id');
    }
    public function user(){
        return $this->hasOne(User::class,'id','user_id');
    }
}
